<?php

namespace App\Request;

use App\Request\BaseFormRequest;

class TermRequest extends BaseFormRequest{

    public function rules() {
        return [
            'name' => 'required',
            'start_day' => 'required',
            'end_day' => 'required',
        ];
    }
    public function authorize()
    {
        return true;
    }
    public function messages() {
        return [
            'name.required' => '名字必须要有',
            'start_day.required' => '开始时间必须要有',
            'end_day.required' => '结束时间必须要有'
        ];
    }
}
